<?
require_once( '../includes/init.php');

$siteObj=alps::newClass('mod_site','mod');

$siteInfo = $siteObj->getSiteInfo($_SERVER['HTTP_HOST']);                                                     //得到站点信息
if (empty($siteInfo)) die('请检查域名是否错误');
require_once('include.php');
$smarty->assign('siteInfo',$siteInfo);
if ($siteInfo['site_status']==3) {
echo "<script>alert('网站审核没有通过');window.close();</script>";die;
}
$tplInfo = $siteObj->getTpl($siteInfo['template_id']);                                                         //得到模板
$tplpath=$tplInfo['temppath'];

$cookie_arr = $siteObj->getcookie();
$cookie=$cookie_arr['apply_id'].'_'.'100'.'_'.$cookie_arr['site_id'];
$smarty->assign('cookies',$cookie);

$smarty->assign('backaddress',$_SERVER['HTTP_HOST']);
$smarty->display($tplpath.'register.html'); 
?>